package sweetcamera;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.github.postsanf.yinian.R;
import com.github.postsanf.yinian.utils.StringUtils;

public class PailideShowTextActivity extends Activity implements View.OnClickListener {
    private TextView pailide_text;
    private String content;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_pailideshow_text);
        content = getIntent().getStringExtra("text");
        initView();
    }


    void initView() {
        findViewById(R.id.iv_back).setOnClickListener(this);
        pailide_text = (TextView) findViewById(R.id.pailide_text);
        if (!StringUtils.isEmpty(content)) {
            pailide_text.setText(content);
        }
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.iv_back:
                finish();
                break;
        }
    }
}
